<template>
  <div class="login">
    用户登录
    <button @click="handleLogin">登录</button>
  </div>
</template>

<script>
import { login } from '@/api/login'
export default {
  name: 'Login',
  data() {
    return {}
  },
  methods: {
    handleLogin() {
      login()
        .then(data => console.log('登录结果:', data))
    }
  }
}
</script>

<style lang="less" scoped>

</style>
